﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

using Castle.Core.Logging;

namespace TVN.ShopMan.ApplicationInterface.AppForms
{
    using TVN.Common.Interfaces;
    using TVN.ShopMan.ActiveModels;

    public partial class GenericDataForm : Form
    {
        private static readonly ILogger logger = Program.Logger.CreateChildLogger("GenericDataForm");
        private IRepository<GenericData> genericDataRepository = null;

        public GenericDataForm()
        {
            InitializeComponent();

            this.genericDataRepository = Program.Container.Resolve<IRepository<GenericData>>();
        }

        private void btnNewData_Click(object sender, EventArgs e)
        {
            using (var newForm = new GenericDataFormEdit
            {
                StartPosition = FormStartPosition.CenterParent
            })
            {
                newForm.ShowDialog();
            }
        }
    }
}
